$OpenBSD: patch-modules_db_berkeley_bdb_lib_c,v 1.2 2015/11/20 10:09:52 sthen Exp $
--- modules/db_berkeley/bdb_lib.c.orig	Fri Oct  2 15:35:17 2015
+++ modules/db_berkeley/bdb_lib.c	Mon Oct 19 14:00:40 2015
@@ -666,7 +666,7 @@ int bdblib_create_journal(bdb_db_p _db_p, bdb_table_p 
 {
 	char *s;
 	char fn[1024];
-	char d[64];
+	char d[128];
 	FILE *fp = NULL;
 	struct tm *t;
 	int bl;
@@ -686,7 +686,7 @@ int bdblib_create_journal(bdb_db_p _db_p, bdb_table_p 
 	s+=_tp->name.len;
 	
 	t = localtime( &tim );
-	bl=strftime(d,128,"-%Y%m%d%H%M%S.jnl",t);
+	bl=strftime(d,sizeof(d),"-%Y%m%d%H%M%S.jnl",t);
 	strncpy(s, d, bl);
 	s+= bl;
 	*s = 0;
